import { ClassifyEntity } from './classify';
import  {xsEntity} from './commentity';
import { Column ,Entity, JoinColumn, OneToOne} from 'typeorm';

/**
 * 描述
 */
@Entity()
export class PartnewEntity extends xsEntity {
  @Column({ comment: '标题' })
  title: string;
  @Column({ comment: '内容' })
  content: string;

  @Column({ comment: '图片' })
  url: string;

  
  @Column(  { comment: '学生' })
  student: string;

//   外键
  @OneToOne(type => ClassifyEntity, photo => photo.id)
  @JoinColumn()
  pid: ClassifyEntity;





}
